package com.mayblackcat.dy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;


@SpringBootApplication
@ComponentScan(basePackages = {"com.mayblackcat"})      //扫描包下的组件
@MapperScan(value = "com.mayblackcat.dy.dao")           //扫描包下的mapper
@CrossOrigin(origins = "*", maxAge = 3600)
public class DyApplication {

    public static void main(String[] args) {
        SpringApplication.run(DyApplication.class, args);
    }

}
